{template header}
<div class="midder">

<div class="mc">

{template menu}

<div class="cleft" style="position: relative;">
<h1><a href="{SITE_URL}{tsUrl('group','show',array('id'=>$strGroup['groupid']))}">{$strGroup[groupname]}</a> </h1>
<div class="clear"></div>
<div class="box">

<div class="box_content">

<!--帖子分类-->
<div class="topictype">
<ul>
<li <!--{if $typeid=="0"}-->class="on"<!--{/if}-->><a href="{SITE_URL}{tsUrl('group','show',array('id'=>$strGroup[groupid]))}"><span>{php echo L::show_all}</span></a></li>
<!--{loop $arrTopicType $key $item}-->
<li <!--{if $typeid==$item[typeid]}-->class="on"<!--{/if}-->><a href="{SITE_URL}{tsUrl('group','show',array('id'=>$strGroup[groupid],typeid=>$item[typeid]))}"><span>{$item[typename]}</span></a></li>
<!--{/loop}-->
</ul>
</div>
<div class="clear"></div>



<div class="topic_list">
<ul>

<!--{loop $arrTopic $key $item}-->
<li>
<div class="userimg">
<!--{if $item[user][userid] !=$arrTopic[$key-1][user][userid]}-->
<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[user][userid]))}" rel="face" uid="{$item['user']['userid']}"><img src="{$item[user][face_32]}" width="32" /></a>
<!--{else}-->
&nbsp;
<!--{/if}-->
</div>

<div class="topic_title">
<div class="title">
<!--{if $item[typeid] != 0}--><a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid],typeid=>$item[typeid]))}">[{$item[typename]}]</a><!--{/if}-->

<a title="{$item[title]}" href="{SITE_URL}{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[title]}</a>
<!--{if $item[istop]=='1'}-->
<img src="{SITE_URL}app/{$app}/skins/{$skin}/headtopic_1.gif" title="[置顶]" alt="[置顶]" /> 
<!--{/if}-->
<!--{if $item[addtime]>strtotime(date('Y-m-d 00:00:00'))}-->
<img src="{SITE_URL}app/{$app}/skins/{$skin}/topic_new.gif" align="absmiddle"  title="[新帖]" alt="[新帖]" />
<!--{/if}--> 

<!--{if $item[photo]}-->
<img src="{SITE_URL}app/{$app}/skins/{$skin}/image_s.gif" title="[图片]" alt="[图片]" align="absmiddle" />
<!--{/if}--> 

<!--{if $item['attach']}--><img src="{SITE_URL}app/{$app}/skins/{$skin}/attach.gif" title="[附件]" alt="[附件]" />
<!--{/if}-->

<!--{if $item[isposts] == '1'}-->
<img src="{SITE_URL}public/images/posts.gif" title="[精华]" alt="[精华]" />
<!--{/if}-->

<!--{if $item['thread_type']=='music'}-->
<img src="{SITE_URL}public/images/music.gif" align="absmiddle"  title="[音乐]" alt="[音乐]" />
<!--{/if}-->
<!--{if $item['thread_type']=='vote'}-->
<img src="{SITE_URL}public/images/vote.gif" align="absmiddle"  title="[投票]" alt="[投票]" />
<!--{/if}-->

</div>
<div class="topic_info">
<span style="float:left;">
{php echo getTime($item[uptime],time())}
</span>

<span style="float:right;">
<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[userid]))}"  rel="face" uid="{$item['user']['userid']}">{$item[user][username]}</a>

<!--{if $item[count_comment]>0}--><a class="rank" style="color:#FFFFFF;" href="{SITE_URL}{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[count_comment]}</a><!--{/if}-->
</span>
</div>
</div>
<div class="clear"></div>
</li>	
<!--{/loop}-->

</ul>
</div>


<div class="page">{$pageUrl}</div>

</div>
</div>


<!--发布帖子-->
<div style="position: absolute;right: 40px;;top: 10px;"><a class="submit" href="{SITE_URL}{tsUrl('group','add',array('id'=>$strGroup[groupid]))}">{php echo L::show_addpost}</a></div>
</div>


<div class="cright">


<div class="infobox">

<div class="bd">
<img align="left" alt="{$strGroup[groupname]}" src="{$strGroup[icon_48]}" class="pil mr5 groupicon" valign="top" />
<div>
$strGroup['groupname']
<br />
{php echo L::show_foundedin}{php echo date('Y-m-d',$strGroup[addtime])}
<br />
{php echo L::show_leader}：<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$strLeader[userid]))}"  rel="face" uid="{$strLeader['userid']}">{$strLeader[username]}</a>
</div>
<div class="clear"></div>

<div style="line-height: 23px;">
{$strGroup[groupdesc]}
</div>

<div class="clearfix" style="margin-top: 10px;">
<!--{if $isGroupUser > 0 && $TS_USER[user][userid] != $strGroup[userid]}-->
<span class="fleft mr5 color-gray">{php echo L::show_Imthegroup}{$strGroup[role_user]} <a class="j a_confirm_link" href="{SITE_URL}{tsUrl('group','do',array('ts'=>'exit','groupid'=>$strGroup['groupid']))}" style="margin-left: 6px;">&gt;{php echo L::show_Imthegroup}</a></span>
<!--{elseif $isGroupUser > 0 && $TS_USER[user][userid] == $strGroup[userid]}-->
<span class="fleft mr5 color-gray">{php echo L::show_Imthegroup}{$strGroup[role_leader]}</span>
<!--{elseif $strGroup[joinway] == '0'}-->
<span><a class="submit" href="{SITE_URL}{tsUrl('group','do',array('ts'=>'join','groupid'=>$strGroup['groupid']))}">{php echo L::show_join}</a></span>

<!--{else}-->
<span class="fright">{php echo L::show_groupbarred}</span>
<!--{/if}-->


</div>
</div>

</div>



<div>
<h2>{php echo L::show_newmembers}</h2>

<!--{loop $arrGroupUser $key $item}-->
<dl class="obu">
<dt><a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[userid]))}" rel="face" uid="{$item['userid']}"><img alt="{$item[username]}" class="m_sub_img" src="{$item[face]}" width="48" /></a></dt>
<dd>{$item[username]}</dd></dl>
<!--{/loop}-->
<br clear="all">

{if $strGroup['joinway']==1 && $strGroup['userid'] == $TS_USER['user']['userid']}
<p>
<form method="post" action="{SITE_URL}{tsUrl('group','do',array('ts'=>'invite'))}">
<input type="text" name="userid" value="" /> 
<input type="hidden" name="groupid" value="{$strGroup['groupid']}" />
<input class="submit" type="submit" value="{php echo L::show_invite}" /></p>
</form>
{/if}

<!--{if $TS_USER[user][userid] == $strGroup[userid] || $TS_USER['user']['isadmin']=='1'}-->
<p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('group','edit',array(groupid=>$strGroup[groupid],ts=>base))}">{php echo L::show_groupsetting} </a></p>

<p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('group','show',array('id'=>$strGroup[groupid],'isshow'=>'1'))}">{php echo L::show_recovery} </a>({$strGroup['recoverynum']})</p>

<!--{/if}-->

<p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('group','group_user',array(groupid=>$strGroup[groupid]))}">{php echo L::show_groupmembers}  </a>({$strGroup[count_user]})</p>

<div class="clear"></div>
</div>

<p class="pl"><span class="feed"><a href="{SITE_URL}{tsUrl('group','rss',array(groupid=>$strGroup[groupid]))}">feed: rss 2.0</a></span></p>

<div class="clear"></div>
{php doAction('group_group_right_footer',$strTopic,'300')}

</div>
</div>
</div>

{template footer}